<?php

/**
 * Ctrl父类
 * 
 * @author Dean
 *
 */
class Ctrl {
	
	/**
	 * 进行页面跳转
	 * 
	 * @param String $url
	 * @param String $alert
	 */
	public function showMessage($url, $alert) {
		global $_SGLOBAL;

		$message = $_SGLOBAL['alert'][$alert];
		if($message == '')$message = "提示错误~";

		$view = new View('base');
		
		$data = array(
			'showMessage' => 'true',
			'message' => $message,
			'url' => $url
		);
		
		$view->display($data, 'message.html');
	}	
	
}


?>